
<template>
    <p>{{msg}} <<===单个文件组件
     <!--   <comp3></comp3>
        <router-link to="/comp4">組件4</router-link>
        <router-link to="/comp5">組件5</router-link>
        <router-view></router-view>-->
    </p>

</template>

<script>
    import comp3 from './comp3.vue'
    export default{
        data:function() {
            return {
                msg: "测试组件"
            }
        },
        components:{
            comp3
        }
    }
</script>

<style>
    p{
        font-size: 14px;
        color: red;
    }
</style>